#!/bin/sh -e

export CFLAGS="$CFLAGS -static"

./configure \
    --prefix=/usr \
    --program-prefix=g

make
make DESTDIR="$1" install

ln -s /usr/bin/gtar "$1/usr/bin/tar"
